const base = process.env.NODE_ENV === 'production' ? '/v2-charts/' : '/'

module.exports = {
  base,
  title: 'v2-charts',
  description: '让图表更简单，vue图表组件，vue，echarts',
  head: [
    ['link', { rel: 'shortcut icon', type: "image/x-icon", href: `/favicon.ico` }]
  ],
  themeConfig: {
    logo: '/hero.png',
    sidebar: {
      '/examples/': [
        '',
        'bar',
        'line',
        'pie',
        'radar',
        'scatter',
        'status'
      ]
    },
    nav: [
      {text: '指南', link: '/guide/'},
      {text: '示例', link: '/examples/'},
      {text: '码云', link: 'https://gitee.com/qq1332783374/v2-charts', target:'_blank'}
    ]
  },
  // 插件配置
  plugins: [
    // 官网 https://docs.chenjianhui.site/vuepress-plugin-demo-container/zh/
    'demo-container'
  ]
}
